<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="/lottery/js/question-src.js"></script>
<link href="/lottery/css/lottery.css" type="text/css" rel="stylesheet" />
</head>
<body>
<div class="my" style="margin: 0px;">
<div class="my1">活动期间,每天都有机会参加答题抽奖
</div>

<div class="my2 font3"><span class="font4 mzy10">第 <c:out value="${usedCount+1}"/>关</span>
(你今日已回答 <c:out value="${usedCount}"/> 题，还可以回答 <c:out value="${avaliableCount}"/> 题）</div>
<div class="my3">
<div class="font6"
	style="width: 270px; height: 70px; valign: middle; margin-left: -15px; margin-top: -15px; line-height: 20px;">
<table width="100%" height="100%" border="0" cellspacing="0"
	cellpadding="0">
	<tr>
		<td valign="middle"><c:out value="${question.questionContent}"/></td>
	</tr>
</table>
</div>
<div class="font7"
	style="width: 300px; margin-left: -30px; margin-top: 34px;">
 			<table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <c:forEach var="item" items="${questionResult}">
                         <tr>
                             <td width="8%">
                                 <input type="radio" name="radio" value="<c:out value="${item.resultId}"/>" 
                                 onclick="setResultId('<c:out value="${item.resultId}"/>');"/>
                             </td>
                             <td width="92%" class="font8"><c:out value="${item.content}"/></td>
                         </tr>
                   </c:forEach>
            </table>
</div>
<form action="" id="questionResultForm" name="questionResultForm" method="post">
	<input type="hidden" name="resultId" id="resultId" /> 
	<input type="hidden" name="questionId" id="questionId" 
		value="<c:out value="${question.phaseQuestionId}"/>" />
	<input type="hidden" name="phaseId" id="phaseId" value="${phaseId}"/>
</form>
<div class="bt"><a href="#" onclick="answerQuestion('<c:out value="${flag}"/>')"> <img
	src="/lottery/images/bt.jpg" width="144" height="56" border="0"
	alt="" id="questionSubmit"/> </a></div>
</div>
</div>

</body>
</html>
